package com.example.clienttest;

import com.baomidou.kisso.SSOHelper;
import com.baomidou.kisso.security.token.SSOToken;
import org.bouncycastle.math.raw.Mod;
import org.springframework.http.HttpRequest;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;


@Controller
public class ClientController {
    @RequestMapping("client")
    public String client(HttpServletRequest request, Model model){
        int i=0;
        SSOToken ssoToken=SSOHelper.getSSOToken(request);
        model.addAttribute("id",ssoToken.getId());
        return "client";
    }
}
